package cn.edu.zafu.bigdata.x.wgj.c;
class MathOperations{
    int add(int a,int b){
        return a+b;
    }
    double add(double a,double b){
        return a+b;
    }
    int add(int a,int b,int c){
        return a+b+c;
    }
}
public class TestMathOperations {
    public static void main(String[] args){
        MathOperations math=new MathOperations();
        int sumOfIntegers=math.add(5,3);
        System.out.println("Sum of tow integers:"+sumOfIntegers);
        double sumOfDoubles=math.add(2.5,3.7);
        System.out.println("Sum of tow doubles:"+sumOfDoubles);
        int sumOfThreeIntegers=math.add(2,3,4);
        System.out.println("Sum of three integers:"+sumOfThreeIntegers);
    }
}
